<div class="nav">
   <a class="sel" href="{:U('index')}">PC首页模块列表</a>
   <a href="{:U('add')}">添加首页模块</a>
   <a href="{:U('adv_add')}" style="display:none">添加横幅广告</a>
</div>
<div class="list">
<table class="table_list">
  <thead><tr>
    <td style="display:none">楼层</td>
    <td>模块名称</td>
    <td>风格类型</td>
    <td>顺序编号</td>
    <td>是否显示</td>
    <td>操作</td>
  </tr>
  </thead>
  <tbody>
  <foreach name="list" item="item">
      <if condition="$item['style_id'] neq 1">
            <tr>
            <td style="display:none">{$item.floor_name}</td>
            <td>{$item.block_name}</td>
            <td>{$item.style_name}</td>
            <td class="edit_input" attr_t="order_id" attr_id="{$item.block_id}">{$item.order_id}</td>
            <td class="edit_toggle" attr_t="is_enable" attr_id="{$item.block_id}">{$item.is_enable}</td>
            <td><a class="btn_a" href="{:U('content',Array('block_id'=>$item['block_id']))}">管理内容</a>&nbsp;
                <a class="btn_a" href="{:U('edit',Array('block_id'=>$item['block_id']))}">修改</a>&nbsp;
                <a class="btn_a2" href="{:U('del',Array('block_id'=>$item['block_id']))}" onclick="return confirm('确定删除吗？')">删除</a></td>
             </tr>
     <else />
            <tr>
            <td></td>
            <td>{$item.block_name}</td>
            <td>{$item.style_name}</td>
            <td class="edit_input" attr_t="order_id" attr_id="{$item.block_id}">{$item.order_id}</td>
            <td class="edit_toggle" attr_t="is_enable" attr_id="{$item.block_id}">{$item.is_enable}</td>
            <td>
                <a class="btn_a" href="{:U('adv_edit',Array('block_id'=>$item['block_id']))}">修改</a>&nbsp;
                <a class="btn_a2" href="{:U('del',Array('block_id'=>$item['block_id']))}" onclick="return confirm('确定删除吗？')">删除</a></td>
             </tr>
      </if>
  </foreach>
  </tbody>
  <tfoot>
    <tr><td colspan="6"><div class="page">{$page}</div></td></tr>
  </tfoot>
</table>
</div>
